package com.cookbook.cookbookservice.mapstructs;

import com.cookbook.cookbookservice.model.domain.CaipuItemInfoDO;
import com.cookbook.cookbookservice.model.vo.CaipuItemInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @program: cookbook-service
 * @ClassName CaipuItemInfoMapStructs
 * @description:
 * @author: MiaoChao
 * @create: 2024-10-28 11:20
 * @Version 1.0
 **/
@Mapper
public interface CaipuItemInfoMapStructs {

    CaipuItemInfoMapStructs ci = Mappers.getMapper(CaipuItemInfoMapStructs.class);

    CaipuItemInfoVO toVO(CaipuItemInfoDO caipuItemInfoDO);

    List<CaipuItemInfoVO> toVOList(List<CaipuItemInfoDO> caipuItemInfoDOList);

    CaipuItemInfoDO toDO(CaipuItemInfoVO caipuItemInfoVO);
}